//
//  LocalPlayer.h
//  Maze1
//
//  Created by Lin Tian on 10/21/11.
//  Copyright 2011 tina. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Player.h"
#import "GameDefine.h"

@interface LocalPlayer : Player {
    CGPoint _viewDirection;
    float _viewPort;
    float _viewRadius;
    float _deltaSpped;
    NSString *_pwd;
    NSString *_name;
}

+(id) playerWithPlayerName:(NSString *)playerName Pwd:(NSString*)pwd;
-(id) initWithPlayerName:(NSString*)name Pwd:(NSString*)pwd;

-(id) initSpriteWithParentNode:(CCNode*)parentNode position:(CGPoint)loc;
-(void)creatRoomWithMapId:(unsigned char)map numForces:(unsigned char)num;
-(BOOL)pickupItem:(Item*)anItem;

@property (nonatomic,readwrite, assign) CGPoint viewDirection;
@property (nonatomic, readwrite, assign) float viewPort;
@property (nonatomic, readwrite, assign) float viewRadius;
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *pwd;
@property (nonatomic, readwrite, assign) float deltaSpeed;

@end
